<?php
//include Header
$path = $_SERVER['DOCUMENT_ROOT'];
include("$path/header.php");

if(isset($_SESSION['sessionid'])){
	$result = mysql_query("select beheerder from klanten where klantnummer = " . $_SESSION['klantnummer'] . ";",$server);
	$beheerder = 0;
	while($row = mysql_fetch_array($result)){
		$beheerder = $row['beheerder'];
	}
	if($beheerder == 1){
		//pagina content hier
	} else {
		echo "<h1>Onvoldoende rechten</h1>";
	}
} else {
	echo "<h1>Niet ingelogd</h1>";
}

//include footer
include("$path/footer.php");

?>